<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{Agent_Title} (List)</title>
<link rel="stylesheet" href="../../css/mem_report.css" type="text/css">
<script language="JavaScript">
<!--
strRowClassName = "crig";

function Bet(intMID){
	with(document.BetForm){
		MemID.value = intMID;
		WagerType.value = "0";
		submit();
	}
}

function ReportType(intLID, intBT, intWT){
	with(document.BetForm){
		LottoID.value = intLID;
		Bet_Type.value = intBT;
		WagerType.value = intWT;
		submit();
	}
}

function Main(){
	with(document.MainForm){
		submit();
	}
}

function BetSupple(intMID){
	with(document.BetForm){
		WagerType.value = "2";
		MemID.value = intMID;
		submit();
	}
}
//-->
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<form action="Bet_List.php" method="get" name="BetForm">
	<input type="hidden" name="op" value="List">
	<input type="hidden" name="MemID" value="">
	<input type="hidden" name="SubID" value="{Show_SubID}">
	<!--<input type="hidden" name="SubAccount" value="{Show_SubAccount}">//-->
	<input type="hidden" name="MainID" value="{Show_MainID}">
	<input type="hidden" name="Types" value="{Show_Types}">
	<input type="hidden" name="LottoID" value="{Show_LottoID}">
	<input type="hidden" name="GambleID" value="{Show_GambleID}">
	<input type="hidden" name="Bet_Type" value="{Show_Bet_Type}">
	<input type="hidden" name="PayupDate_0" value="{Show_PayupDate_0}">
	<input type="hidden" name="PayupDate_1" value="{Show_PayupDate_1}">
	<input type="hidden" name="WagerType" value="0">
</form>

<form action="index.php" method="get" name="MainForm">
	<input type="hidden" name="op" value="List">
	<input type="hidden" name="LottoID" value="{Show_LottoID}">
	<input type="hidden" name="GambleID" value="{Show_GambleID}">
	<input type="hidden" name="Bet_Type" value="{Show_Bet_Type}">
	<input type="hidden" name="Types" value="{Show_Types}">
	<input type="hidden" name="MainID" value="{Show_MainID}">
	<input type="hidden" name="PayupDate_0" value="{Show_PayupDate_0}">
	<input type="hidden" name="PayupDate_1" value="{Show_PayupDate_1}">
</form>

<table border="0" cellspacing="0" cellpadding="0" class="cmti">
  <tr> 
    <td>{Agent_Title} -- {List_Lotto} : {LottoContent} -- {List_BetDate} : {Show_PayupDate_0} ~ {Show_PayupDate_1} -- {List_BetType} : {BetTypeContent} 
      <!--@ ShowBar Start @//--><input type="button" value="{Search}" class="zabutton" onclick="location.href='Sub_index.php?op=Search'"><!--@ ShowBar End @//-->
    </td>
  </tr>
</table>
<div class="ctabdv"> 
  <table border="0" cellspacing="1" cellpadding="0" class="ctab">
    <tr class="ctiport"> 
      <td width="100">{Member}</td>
      <td width="40">{Bet_No}</td>
      <td width="70">{Bet_Stakes}</td>
      <td width="70">{Bet_Result}</td>
      <td width="70">{MemCo}</td>
      <td width="40">{ER}</td>
      <td width="70">{MemRBM}</td>
      <td width="50">{A%}</td>
      <td width="70">{AgentRateWin}</td>
	  <td width="70">{AgentComm}</td>
	  <td width="70">{AgentWin}</td>
      <td width="30">{G%}</td>
      <td width="70">{AgentResult}</td>
    </tr>
<!--@ BetContent Start @//-->
    <tr class="crig">
      <td align="left">{Show_Member}</td>
      <td>{Totals}</td>
      <td><a href="JavaScript:Bet('{MemID}')">{MemStake}</a></td>
      <td>{SMemResult}</td>
      <td>{SMemCo}</td>
      <td>{SER}</td>
      <td>{SMemRBM}</td>
      <td style="background-color: #FFFFB3;">{SA%}</td>
      <td style="background-color: #FFFFB3;">{SAgentRateWin}</td>
	  <td style="background-color: #FFFFB3;">{SAgentComm}</td>
	  <td style="background-color: #FFFFB3;">{SAgentWin}</td>
      <td>{SG%}</td>
      <td>{SAgentResult}</td>
    </tr>
<!--@ BetContent End @//-->
    <tr class="cmsto">
      <td>{Sum}</td>
      <td>{SumTotals}</td>
      <td>{SumMemStake}</td>
      <td>{SumMemResult}</td>
      <td>{SumMemCo}</td>
      <td>&nbsp;</td>
      <td>{SumMemRBM}</td>
      <td>&nbsp;</td>
	  <td>{SumAgentRateWin}</td>
	  <td>{SumAgentComm}</td>
      <td>{SumAgentWin}</td>
      <td>&nbsp;</td>
      <td>{SumAgentResult}</td>
    </tr>

    <tr class="crig">
      <td colspan="13">&nbsp;</td>
    </tr>
    <tr class="ctiport"> 
      <td colspan="13">{Supple_Title}</td>
    </tr>
    <tr class="ctiport"> 
      <td width="100">{Agent}</td>
      <td width="40">{Bet_No}</td>
      <td width="70">{Bet_Stakes}</td>
      <td width="70">{Bet_Result}</td>
      <td width="70">{MemCo}</td>
      <td width="40">{ER}</td>
      <td width="70">{MemRBM}</td>
      <td width="50">{A%}</td>
      <td width="70">{AgentRateWin}</td>
	  <td width="70">{AgentComm}</td>
	  <td width="70">{AgentWin}</td>
      <td width="30">{G%}</td>
      <td width="70">{AgentResult}</td>
    </tr>
<!--@ SuppleBetContent Start @//-->
    <tr class="crig">
      <td align="left">{Show_Member}</td>
      <td>{Totals}</td>
      <td><a href="JavaScript:BetSupple('{Show_SubID}')">{MemStake}</a></td>
      <td>{SMemResult}</td>
      <td>{SMemCo}</td>
      <td>{SER}</td>
      <td>{SMemRBM}</td>
      <td style="background-color: #FFFFB3;">{SA%}</td>
      <td style="background-color: #FFFFB3;">{SAgentRateWin}</td>
	  <td style="background-color: #FFFFB3;">{SAgentComm}</td>
	  <td style="background-color: #FFFFB3;">{SAgentWin}</td>
      <td>{SG%}</td>
      <td>{SAgentResult}</td>
    </tr>
<!--@ SuppleBetContent End @//-->
    <tr class="cmsto">
      <td>{Sum}</td>
      <td>{SuppleSumTotals}</td>
      <td>{SuppleSumMemStake}</td>
      <td>{SuppleSumMemResult}</td>
      <td>{SuppleSumMemCo}</td>
      <td>&nbsp;</td>
      <td>{SuppleSumMemRBM}</td>
      <td>&nbsp;</td>
	  <td>{SuppleSumAgentRateWin}</td>
	  <td>{SuppleSumAgentComm}</td>
      <td>{SuppleSumAgentWin}</td>
      <td>&nbsp;</td>
      <td>{SuppleSumAgentResult}</td>
    </tr>
    <tr class="crig">
      <td colspan="13">&nbsp;</td>
    </tr>
    <tr class="cmto"> 
      <td colspan="13" align="center">{Sum}</td>
    </tr>
    <tr class="ctiport"> 
      <td>{Agent}</td>
      <td>{Bet_No}</td>
      <td>{Bet_Stakes}</td>
      <td colspan="4">{WinLose}</td>
      <td colspan="5">{Comm}</td>
      <td>{Result}</td>
    </tr>
    <tr class="cmsto"> 
      <td>{ShowAgent}</td>
      <td>{tolTotals}</td>
      <td>{tolMemStake}</td>
      <td colspan="4">{tolWinLose}</td>
      <td colspan="5">{tolComm}</td>
      <td style="background-color: #FF0000; font-weight: 700;">{tolResult}</td>
    </tr>
</table>
</div>
</body>
</html>
